
import java.util.Scanner;

public class max {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int[] a = new int[3];
        int max = a[0];

        System.out.println("请输入三个整数");
        for (int i = 0; i < a.length; i++) {
            a[i] = input.nextInt();
        }
        for (int i = 0; i < a.length; i++) {
            if (a[i] > max) {
                max = a[i];
            }
        }
        int min = a[0];
        for (int i = 0; i < a.length; i++) {
            if (a[i] < min) {
                min = a[i];
            }
        }
        System.out.println("最大值" + max + "\n" + "最小值" + min);
    }
}


